package com.itheima.strengthen.test02.domain;

public abstract class Hero {
    private String hName;
    private int hHp;
    private int hMp;
    private double hAttack;
    private QSkill qSkill;
    private WSkill wSkill;
    private ESkill eSkill;

    public Hero(String hName, int hHp, int hMp, double hAttack) {
        this.hName = hName;
        this.hHp = hHp;
        this.hMp = hMp;
        this.hAttack = hAttack;
    }

    public abstract void speak();

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName;
    }

    public int gethHp() {
        return hHp;
    }

    public void sethHp(int hHp) {
        this.hHp = hHp;
    }

    public int gethMp() {
        return hMp;
    }

    public void sethMp(int hMp) {
        this.hMp = hMp;
    }

    public double gethAttack() {
        return hAttack;
    }

    public void sethAttack(int hAttack) {
        this.hAttack = hAttack;
    }

    public QSkill getqSkill() {
        return qSkill;
    }

    public void setqSkill(QSkill qSkill) {
        this.qSkill = qSkill;
    }

    public WSkill getwSkill() {
        return wSkill;
    }

    public void setwSkill(WSkill wSkill) {
        this.wSkill = wSkill;
    }

    public ESkill geteSkill() {
        return eSkill;
    }

    public void seteSkill(ESkill eSkill) {
        this.eSkill = eSkill;
    }

    public Hero() {

    }

    public Hero(String hName, int hHp, int hMp, double hAttack, QSkill qSkill, WSkill wSkill, ESkill eSkill) {

        this.hName = hName;
        this.hHp = hHp;
        this.hMp = hMp;
        this.hAttack = hAttack;
        this.qSkill = qSkill;
        this.wSkill = wSkill;
        this.eSkill = eSkill;
    }
}
